using MediatR;
using S.M.SmartMedical.Domain.DTOs;
using S.M.SmartMedical.ErrorCode;

namespace S.M.SmartMedical.API.Read.Application.Query
{
    /// <summary>
    /// 用户登录查询
    /// </summary>
    public class LoginUserQuery : IRequest<APIResult<UserInfoDto>>
    {
        /// <summary>
        /// 用户登录信息
        /// </summary>
        public UserLoginDto UserLogin { get; set; } = new();

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="userLogin">用户登录信息</param>
        public LoginUserQuery(UserLoginDto userLogin)
        {
            UserLogin = userLogin;
        }
    }
}